<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>03-供货商-02合作供货厂商-商家详情-04门店相册</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="screen-orientation" content="portrait">
    <meta name="x5-orientation" content="portrait">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="Expires" content="-1">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Pragma" content="no-cache">
    <link href="/css/public.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/css/personal.css" rel="stylesheet" type="text/css" media="all" />
    <script src="/js/jquery-2.1.4.min.js"></script>
</head>
<body class="graybody">
<header class="header">
    <div class="header_left"><a href="/supplies" class="returnico"></a></div>
    <div class="header_center fontcolor">商家详情</div>
</header>
<!--全部订单菜单-->
<div class="allddnav">
    <ul>
        <li><a href="/supplies_content/<?php echo $ms->g_id?>">店铺首页</a></li>
        <li><a href="/supplies_goods/<?php echo $ms->g_id?>">所有商品</a></li>
        <li><a href="/supplies_active/<?php echo $ms->g_id?>">优惠活动</a></li>
        <li  class="indexbordercolor cliallddnav fontcolor"><a href="#">门店相册</a></li>
        <li><a href="/supplies_tell/<?php echo $ms->g_id?>">联系我们</a></li>
    </ul>
</div>
<div class="photodiv">
    <div class="photodivtop">
        <div class="photodivtopli">
        <ul>
                <?php foreach($msg as $key=>$val) {?>
                <li><img src="<?php echo $val->img_url?>" width="100%" height="100%"/></li>
                <?php }?>
            </ul>
        </div>
    </div>
    <div class="photodivbot">
        <ul>
        <?php foreach($msg as $key=>$val) {?>
            <li><img src="<?php echo $val->img_url?>" width="100%"/></li>
               <?php }?>
        </ul>
    </div>
</div>
<script>
    $(function(){
        $(".photodivtop ul li").eq(0).addClass("indexbordercolor");
        var lilength = $(".photodivtop ul li").length;
        var ulwidth = 65 * lilength - 5;
        $(".photodivtop ul").width(ulwidth);
        $(".photodivtop ul li").click(function(){
            $(this).addClass("indexbordercolor").siblings("li").removeClass("indexbordercolor");
            var thisindex = $(".photodivtop ul li").index(this);
            $(".photodivbot ul li").eq(thisindex).siblings("li").hide();
            $(".photodivbot ul li").eq(thisindex).show();
        })
    })
</script>
</body>
</html>